export const userInfo = (state, val) => {
    if (val) {
        state.userInfo = val
        sessionStorage.setItem('userInfo', JSON.stringify(val))
    } else if (val == null) {
        sessionStorage.setItem('userInfo', null)
    }
}

export const readonly = (state, val) => {
    state.readonly = val
}
export const isMobile = (state, val) => {
    state.isMobile = val
}